package com.xyy.scaffoldservice.impl;

import com.xyy.scaffolddao.dataobject.BannerDO;
import com.xyy.scaffolddao.mapper.BannerMapper;
import com.xyy.scaffoldservice.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BannerServiceImpl implements BannerService {

    @Resource
    BannerMapper bannerMapper;

    @Override
    public List<BannerDO> selectBannerList() {
        return bannerMapper.selectBannerList();
    }

    @Override
    public void insertBanner(String bannerId, String bannerImg) {
        bannerMapper.insertBanner(bannerId, bannerImg);
    }
}
